import {Entity, PrimaryGeneratedColumn, Column, BaseEntity, CreateDateColumn} from "typeorm";

@Entity()
export class GoodsInfo extends BaseEntity{
    @PrimaryGeneratedColumn()
    id: number;

    @Column({type:"varchar",length:64,unique:true})
    icode: string;
    
    @Column({type:"varchar",length:64})
    gcode: string;

    @Column({type:"varchar",length:64})
    typeCode: string;

    @Column({type:"varchar",length:64})
    tagCode: string;


    @Column({type:"int"})
    readyCount:number;
    @Column({type:"int"})
    curCount: number;

    @CreateDateColumn()
    createtime: Date;

    @CreateDateColumn()
    updatetime: Date;

}